package com.bwie.sixth.house;

import com.bwie.sixth.house.config.JwtUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableDiscoveryClient
@EnableScheduling
@EnableFeignClients
@MapperScan("com.bwie.sixth.house.dao")
public class HomePageApplication {
    public static void main(String[] args) {
        SpringApplication.run(HomePageApplication.class);
    }

    @Bean
    public JwtUtil jwtUtil(){
        JwtUtil jwtUtil = new JwtUtil();
        return jwtUtil;
    }
}
